package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.HashMap;
import java.util.List;

/**
 * @ProjectName: health_parent
 * @Package: com.itheima.dao
 * @ClassName: UsermanagerDao
 * @Author: Torifu
 * @Date: 2019/7/5 14:26
 * @Description: 实现分页查询和搜索功能
 * @Version: 1.0
 */
public interface UsermanagerDao {

    Page<User> selectByCondition(String queryString);

    void add(User user);

    void setUserIdAndRoleId(HashMap<String, Object> map);

    void deleteUserAndRoleByUserId(Integer id);

    void deleteUserById(Integer id);

    User findUserById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

    void edit(User user);
}
